Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stub functions to get publisher and subcription informations like QoS policies from topic name #959

Closed
wants to merge 2 commits into from

Conversation

mm318
Copy link
Member

@mm318 mm318 commented Jan 3, 2020

For addressing #943 (comment)

This is similar to ros2/rclpy#454, but for rclcpp and will have no implementation right now.

Signed-off-by: Miaofei <miaofei@amazon.com>
Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment.
A method has to be added in node.hpp.

@@ -266,6 +266,22 @@ NodeGraph::count_subscribers(const std::string & topic_name) const
return count;
}

std::vector<rmw_topic_info_t>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rmw_topic_info_t is too "C style", specially because of the C style strings.
I think that the way to go is creating an equivalent cpp class.
It will force some extra unnecessary copying, but performance is not much important in graph instronspection functions.

@ivanpauno ivanpauno added the in review Waiting for review (Kanban column) label Jan 3, 2020
Signed-off-by: Miaofei <miaofei@amazon.com>
@mm318
Copy link
Member Author

mm318 commented Jan 14, 2020

Closing this pull request in favor of #960.

@mm318 mm318 closed this Jan 14, 2020
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants